package com.queming.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author chencidiao
 * @date 2022/04/19 20:17
 **/
@Configuration
public class WebConfig {
    /**
     * @author 陈词调
     * @date 2022/4/19
     * springsecurity提供的密码加密
     */
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
